/**
 * buff管理类
 */
var BaseNode = require('./../../../FrameWork/Component/BaseNode');
var UtilGameObject = require('./../../../FrameWork/Utils/UtilGameObject');
cc.Class(
{
    extends: BaseNode,

    properties:
    {
        nodeParentBuff:
        {
            default: null,
            type: cc.Node,
            displayName: 'buff父节点'
        },
        prefabBuff:
        {
            default: null,
            type: cc.Prefab,
            displayName: 'buff预设'
        }
    },
    onLoad()
    {
        // var cycleTime = 500;
        // var idx = 1;
        // var actArray = [
        //     cc.delayTime(cycleTime * 0.001),
        //     cc.callFunc(function()
        //     {
        //         var ctr = UtilGameObject.getCtrByPrefabs(this.prefabBuff, this.nodeParentBuff, 'BuffCtr');
        //         idx++;
        //         ctr.setTag(idx);
        //     }.bind(this))
        // ];
        // var seq = cc.sequence(actArray);
        // this.node.runAction(cc.repeatForever(seq));
    },
});
